package com.hspedu.homework.homework5;

public class Employee {
    //属性 姓名，职位，基本工资
    private String name;
    private String job;
    private double sal;//基本工资

    //计算全年工资，并返回
    public double annulSal(){
        return sal*365;
    }

    //打印基本信息
    public void printInfo(){
        System.out.println(this.job+" "+this.name + "的全年工资为:"+ annulSal());
    }

    public Employee(String name, String job, double sal) {
        this.name = name;
        this.job = job;
        this.sal = sal;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public double getSal() {
        return sal;
    }

    public void setSal(double sal) {
        this.sal = sal;
    }
}
